#include "maths/cuboid.h"

namespace dw {
	namespace maths {

Cuboid::Cuboid()
{
}

Cuboid::Cuboid(const Point3f& center, const float width, const float height, const float depth) :
center(center), size(width, height, depth)
{
}

Cuboid::Cuboid(const Point3f& center, const Vector3f& size) :
center(center), size(width, height, depth)
{
}

Cuboid::Cuboid(const Point3f& min, const Point3f& max)
{
    center	= (min + max) * 0.5f;
    width		= max.x - min.x;
    height	= max.y - min.y;
    depth		= max.z - min.z;
}

	} // namespace maths
} // namespace dw
